import request from '@/utils/request'

// 查询仓库权限列表
export function listStorehousePermission(query) {
  return request({
    url: '/basic/storehousePermission/list',
    method: 'get',
    params: query
  })
}

// 查询仓库权限详细
export function getStorehousePermission(id) {
  return request({
    url: '/basic/storehousePermission/' + id,
    method: 'get'
  })
}

// 新增仓库权限
export function addStorehousePermission(data) {
  return request({
    url: '/basic/storehousePermission',
    method: 'post',
    data: data
  })
}

// 修改仓库权限
export function updateStorehousePermission(data) {
  return request({
    url: '/basic/storehousePermission',
    method: 'put',
    data: data
  })
}

// 删除仓库权限
export function delStorehousePermission(id) {
  return request({
    url: '/basic/storehousePermission/' + id,
    method: 'delete'
  })
}
